package pack3;

public class Graduate extends Undergraduate{
    private String fx;

    public Graduate(String name, String sex, int years, String xh, String zy,String fx) {
        super(name, sex, years, xh,zy);
        this.fx = fx;
    }
    public Graduate() {
        super();
        this.fx ="";
    }

    public String getFx() {
        return fx;
    }

    public void setFx(String fx) {
        this.fx = fx;
    }
    @Override
    public String toString() {
        return "Undergraduate{" +
                "name='" + getName() + '\'' +
                ",xh='" + getXh() + '\'' +
                ",zy='" + getZy() + '\'' +
                ",fx='" + getFx() + '\'' +
                ", sex='" + sex + '\'' +
                ", years=" + getYears() +
                '}';
    }
}
